import {useBaseInfoStore} from "@/store/modules/base-info";

const baseInfoStore=useBaseInfoStore();
/*工作流dialog页签模式需要的全局参数*/
export function getWorkflowTransParams(){
  const {
    secretLevel,
    businessData,
  } = baseInfoStore.baseInfo
  const {
    summary: {
      id: summaryId,
      templateId,
      formAppid: formId,
      processId: processId,
    },
    affair: {
      activityId: currentNodeId,
    }
  } = businessData || {summary: {}, affair: {}}
  return {
    accessFileSecretLevel: secretLevel?.value,
    returnValueWindow: window,
    openForecastParam:{
      formId,
      templateId,
      processId,
      currentNodeId,
      summaryId,
      _executePrediction: window._executePrediction
    }
  }
}